package com.example.smart_city_0829.utils;

public class Constant {

    public static final String BASE_URL = "http://218.7.112.123:10001/";
    public static final String BASE_URL2 = "http://124.93.196.45:10001";

    public static final String SHARED_PREFERENCE_NAME_USER = "user";

    public static final String HEADER_TOKEN = "Authorization";

    public static final int pageSize = 8;
    public static final int pageNum = 1;

    public static String MediaTypeParseJsonValue = "application/json;charset=utf-8";
    public static String MediaTypeParseImageValue = "Image/jpeg";

    public static String getConsultationState(int code){
        if (code == 0){
            return "未受理";
        }else if (code == 1){
            return "受理中";
        }else if (code == 2){
            return "已完成";
        }
        return "数据错误";
    }
}
